import Vue from 'vue'
import App from './App.vue'
import axiosserver from './utils/request'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 导入矢量图图标样式
import "../public/iconFont/iconfont.js"
import "../public/iconFont/iconfont.css"
import { addColor } from './assets/theme/addColor';
// markdown
import mavonEditor from 'mavon-editor';
import 'mavon-editor/dist/css/index.css';
// markdown转HTML
import showdown from 'showdown';
// import moment from 'moment'
import Toast from "muse-ui-toast";
import api from './api/index'
// import 'lib-flexible'


Vue.use(ElementUI);
Vue.use(mavonEditor);
// Vue.use(moment);
Vue.config.productionTip = false
Vue.prototype.converter = new showdown.Converter();
Vue.prototype.$axios = axiosserver
Vue.prototype.$api = api
Vue.use(Toast, {
  position: "top", // 弹出的位置
  time: 2000, // 显示的时长
  closeIcon: "close", // 关闭的图标
  close: true, // 是否显示关闭按钮
  successIcon: "check_circle", // 成功信息图标
  infoIcon: "info", // 信息信息图标
  warningIcon: "priority_high", // 提醒信息图标
  errorIcon: "warning", // 错误信息图标
});


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


addColor(true)


